interface Flay<E, T> {
  name: E;
  show(x: E): E;
  fn(x: E): T;
}

let f: Flay<string, number> = {
  name: "张三",
  show(x: string) {
    console.log(x);
    return x;
  },
  fn(x: string) {
    console.log(x);
    return 8;
  },
};
f.show("你好接口泛型");
f.fn("哈哈");

let arr = ["admin", "123", "999"];
arr.forEach((v, i, arr) => {
  console.log(v);
});
